<template>
  <div class="loading_box">
    <i></i>
    <i></i>
    <i></i>
    <i></i>
  </div>
</template>

<script>
export default {
  props: ['size'],
}
</script>
<style lang='less' scoped>
.loading_box{
  text-align: center;
  i{
    display: inline-block;
    width: 15px;
    height: 15px;
    margin-right: 5px;
    border-radius: 50%;
    background-color: #ffdfc4;
    animation: loadingAni 1.04s ease infinite;
    &i:last-child{
      margin-right: 0px; 
    }
    // &:nth-child(1){

    // }
    &:nth-child(2){
      animation-delay:0.13s;
    }
    &:nth-child(3){
      animation-delay:0.26s;
    }
    &:nth-child(4){
      animation-delay:0.39s;
    }
    &:nth-child(5){
      animation-delay:0.52s;
    }
  }
}
@keyframes loadingAni{
  0%{
      opacity: 1;
  }
  100%{
      opacity: 0;
  }
}
</style>